import http from '@/utils/request'
import request from '@/utils/requestOther'

export default{

   /**
     * 不分页
     * @returns
     */
 async getPictureList(){
   return await http.get("/api/picture/dustbin/list");
 },

    /**
     * 分页
     * @returns
     */
    async getPicturePage(params){
      return await http.get("/api/picture/dustbin/pageList",params);
    },

    /**
     * 恢复成未删除状态
     * @returns
     */
      async recoverPicture(id){
          return request({
              url: `/api/picture/dustbin/recover/${id}`,
              method: 'put',
        });
      },
    /**
     * 彻底从数据库删除
     * @returns
     */
      async finalDeletePicture(picture){
        return request({
          url: `/api/picture/dustbin/finalDelete`,
          method: 'delete',
          data : picture
        });
      },
}